<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>图片的懒加载</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }

    .container {
      margin:0 auto;
      width: 800px;
    }
    .imgBox {
      height: 430px;
      margin-bottom: 20px;
      overflow: hidden;
      background-color: #eee;
    }

    .imgBox img {
      display: none;
      width: 100%;
    }
  </style>
</head>

<body>
<div class="container">
  <!-- <div class="imgBox">
    <img src="" alt="" data-img="./images/111.jpg">
  </div> -->
</div>

  <script src="node_modules/jquery/dist/jquery.min.js"></script>
  <script src="DelayImg.js"></script>
</body>

</html>